package com.indusfo.spc.pojo;

import com.indusfo.spc.common.pojo.BasePojo;

import javax.persistence.Column;
import javax.persistence.Id;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @ProjectName: jpa05
 * @Package: com.indusfo.spc.pojo
 * @ClassName: BasisList
 * @Author: 熊冰
 * @Description:
 * @Date: 2019/9/25 9:35
 * @Version: 1.0
 */
public class BasisList  extends BasePojo {
    // 上传时间
    SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
    @Id
    @Column(name = "BASISLIST_ID", insertable = false)
    //工艺文件库ID
    private Integer basislistId;
    //物料ID
    private Integer matId;
    //物料编号
    private String vcMatCode;
    //物料名称
    private String vcProjectName;
    //工序ID
    private Integer proId;
    //版本ID
    private Integer lProVer;
    //版本名称
    private String vcVersion;
    //工序名称
    private String  vcProName;
    //文件名
    private String content;
    //最后更新时间
    private Date updateTime=new Date();

    //      System.out.println(df.format(updateTime));// new Dat e()为获取当前系统时间
    private String vcUpdateTime=df.format(new Date());

    private String remark;
    //数据状态
    private Integer dataState=1;

    public String getVcMatCode() {
        return vcMatCode;
    }

    public void setVcMatCode(String vcMatCode) {
        this.vcMatCode = vcMatCode;
    }

    public String getVcProjectName() {
        return vcProjectName;
    }

    public void setVcProjectName(String vcProjectName) {
        this.vcProjectName = vcProjectName;
    }

    public String getVcVersion() {
        return vcVersion;
    }

    public void setVcVersion(String vcVersion) {
        this.vcVersion = vcVersion;
    }

    public Integer getBasislistId() {
        return basislistId;
    }

    public void setBasislistId(Integer basislistId) {
        this.basislistId = basislistId;
    }

    public Integer getMatId() {
        return matId;
    }

    public void setMatId(Integer matId) {
        this.matId = matId;
    }

    public Integer getProId() {
        return proId;
    }

    public void setProId(Integer proId) {
        this.proId = proId;
    }

    public Integer getlProVer() {
        return lProVer;
    }

    public void setlProVer(Integer lProVer) {
        this.lProVer = lProVer;
    }

    public String getVcProName() {
        return vcProName;
    }

    public void setVcProName(String vcProName) {
        this.vcProName = vcProName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getVcUpdateTime() {
        return vcUpdateTime;
    }

    public void setVcUpdateTime(String vcUpdateTime) {
        this.vcUpdateTime = vcUpdateTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }

    @Override
    public String toString() {
        return "BasisList{" +
                "df=" + df +
                ", basislistId=" + basislistId +
                ", matId=" + matId +
                ", vcMatCode='" + vcMatCode + '\'' +
                ", vcProjectName='" + vcProjectName + '\'' +
                ", proId=" + proId +
                ", lProVer=" + lProVer +
                ", vcVersion='" + vcVersion + '\'' +
                ", vcProName='" + vcProName + '\'' +
                ", content='" + content + '\'' +
                ", updateTime=" + updateTime +
                ", vcUpdateTime='" + vcUpdateTime + '\'' +
                ", remark='" + remark + '\'' +
                ", dataState=" + dataState +
                '}';
    }
}
